<?php
if(isset($_SESSION[login_name])){
		 $conn=new db_mysql();
	     $conn->connect(HOST,USERNAME,PWD,DBNAME,0,DBCODE);
	     $log_result=$conn->select("select t1.load_total,t1.user_email,t1.user_paypal,t1.user_qq,t1.user_put,t1.user_remain,t1.user_total from `fada_user` as t1 where t1.user_name='$_SESSION[login_name]' limit 1",'');
		 $smarty->assign("gc_put",$log_result[0][user_put]);
		 $smarty->assign("gc_remain",$log_result[0][user_remain]);
		 $smarty->assign("gc_total",$log_result[0][user_total]);
		 $smarty->assign("load_total",$log_result[0][load_total]);
	     $smarty->assign("user_email",$log_result[0][user_email]);
	     $smarty->assign("user_paypal",$log_result[0][user_paypal]);
		 $smarty->assign("user_qq",$log_result[0][user_qq]);
		 $smarty->assign("login_name",$_SESSION[login_name]);
	}
?>